<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>
</head>

<body>
    <div id="demo">

        <h3>Count: {{count}}</h3>
        <ul>
            <li v-show="count === 1">bootstrap</li>
            <li v-show="count === 2">react</li>
            <li v-show="count === 3">vue</li>
            <li v-show="![1,2,3].includes(count)">其他。。。。</li>
        </ul>
        <button @click="count++">count++</button>
    </div>
    <script>
        /**
         *  v-show="条件表达式":  通过 display:none 控制显示或隐藏
         * 
         */
        new Vue({
            el: '#demo',
            data: {
                count:0
            }
        })
    </script>
</body>

</html>